package com.znufe.exam.viewmodel.admin.student;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import com.znufe.exam.utility.easyexcel.ExcelPatternMsg;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class StudentFromExcelVM extends BaseRowModel implements Serializable {

    @ExcelProperty(value = "姓名", index= 0)
    @ColumnWidth(10)
    private String stuName;

    @ExcelProperty(value = "性别", index = 1)
    @ColumnWidth(10)
    private String gender;

    @ExcelProperty(value = "联系电话", index = 2)
    @ColumnWidth(20)
    @Pattern(regexp = ExcelPatternMsg.NUMBER,message = ExcelPatternMsg.NUMBER_MSG)
    private String stuPhone;

    @ExcelProperty(value = "答题器编号", index = 3)
    @ColumnWidth(20)
    @Pattern(regexp = ExcelPatternMsg.NUMBER,message = ExcelPatternMsg.NUMBER_MSG)
    private String voteId;

    @ExcelProperty(value = "基站编号", index = 4)
    @ColumnWidth(15)
    @Pattern(regexp = ExcelPatternMsg.NUMBER,message = ExcelPatternMsg.NUMBER_MSG)
    private String voteBaseId;

}
